class PseudoArray
feature
    access alias "[]:="(s : STRING; a : INTEGER)
    do
        std_output.put_string(s)
        std_output.put_string("%N")
        std_output.put_integer(a)
        std_output.put_string("%N")        
    end
end

class Test
end

class APP
feature
    INIT 
    local a : Test; b : PseudoArray
    do
        a [2]:=3
        b[a]:=3
        b["34"]:=2
    end
end